package demo;

import static java.lang.Thread.sleep;

public class MyThread extends Thread{
    @Override
    public void run() {
        while(true){
            try {
                sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("hello run");
        }
    }
}
